import request from '@/utils/request'

/**
 * 【财务报表-资金来源占用表】卡片
 */
export const queryInOutCardApi = (data) => {
    return request({
        url: `/portal-server/v1/api/finReport/queryInOutCard`,
        method: 'post',
        data: data
    })
};

/**
 * 【财务报表-投入产出、利润表、开办费报表】卡片
 */
 export const queryFinReportCommonCardApi = (data) => {
    return request({
        url: `/portal-server/v1/api/finReport/queryFinReportCommonCard`,
        method: 'post',
        data: data
    })
};

/**
 * 【财务报表-开办费报表】卡片 - 灰色部分汇总
 */
 export const queryFinReportExpenseTotalCardApi = (data) => {
    return request({
        url: `/portal-server/v1/api/finReport/queryFinReportExpenseTotalCard`,
        method: 'post',
        data: data
    })
};

/**
 * 【财务报表卡片】下钻页 -- 账套下拉列表
 */
export const queryAccountsApi = (biProjectCode) => {
    return request({
        url: `/portal-server/v1/api/finReport/queryAccounts?biProjectCode=${biProjectCode}`,
        method: 'get',
    })
};

/**
 * 【财务报表卡片】下钻页 -- 通用明细页接口
 */
export const queryDetailsApi = (data) => {
    return request({
        url: `/portal-server/v1/api/finReport/queryDetails`,
        method: 'post',
        data: data
    })
};

/**
 * 【财务报表卡片】下钻页 -- 通用下载excel模板
 */
 export const impExcelApi = (data) => {
    return request({
        url: `/portal-server/v1/api/finReport/impExcel`,
        method: 'post',
        data: data
    })
};